package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface CategoryService {
    //保存类别
    void save(Category category);
    //分页查询


    Page<Category> findByPage(int page, int pageSize);

    //根据id删除类别
    void removeById(Long id);

    //根据类别id更新类别
    void updateById(Category category);
    //根据Type(菜品分类)查询菜品
    List<Category> findAll(Integer type);


}
